export const fireEvent = function (eventName: string, data: any, target: EventTarget = document.body) {
  const event = new CustomEvent(eventName, {
    detail: data,
    bubbles: true,
    cancelable: false,
  });

  target.dispatchEvent(event);
};